package teach.aistar.service;

import org.apache.ibatis.annotations.Select;
import teach.aistar.model.entity.CarDetail;
import teach.aistar.model.vo.AdminCarQueryVo;

import java.util.List;

public interface ICarDetailService {
    List<CarDetail> selectByAge(int age);

    List<CarDetail> selectAll();
    //插入车辆信息
    int insert(CarDetail carDetail);

    //根据主键删除车辆信息
    int deleteById(Long id);

    //多条件查询
    List<CarDetail> findByConditional(AdminCarQueryVo adminCarQueryVo);

    //根据车辆id查询信息
    CarDetail findById(long id);

    //更新车辆信息
    int update(CarDetail carDetail);


}
